import static org.junit.Assert.*;

import org.junit.Test;


public class GeneradorIPTest {
	GeneradorIP Generar = new GeneradorIP();
	@Test
	public void testGenerarNumero() {
		for (int x = 0; x<1000;x++){
		assertTrue(Generar.GenerarNumero(0, 1000) >=0 && Generar.GenerarNumero(0, 1000) <=1000);
		}
				}

	@Test
	public void testGenerarIP() {
		String IP = ""; 
		for (int x= 0; x<1000;x++){
	/*String */ IP = Generar.GenerarIP();//Para mirar en principio y fin que sean lo mismo. 		
		assertFalse(IP.charAt(0) == '0' || (IP.charAt(IP.length()-1) == '0' && IP.charAt(IP.length()-2) == '.'));
	}
	}

}
//Integer.parseInt
/*1. assertTrue(boolean test)

assertTrue(String message, boolean test)

2. assertFalse(boolean test)

assertFalse(String message, boolean test)

3. assertEquals(expected, actual)

assertEquals(String message, expected, actual)

4. assertSame(Object expected, Object actual)

assertSame(String message, Object expected, Object actual)

5. assertNotSame(Object expected, Object actual)

assertNotSame(String message, Object expected, Object actual)

6. assertNull(Object object)

assertNull(String message, Object object)

7. assertNotNull(Object object)

assertNotNull(String message, Object object)

8. fail()

fail(String message) */